package com.ryan.day02.demo01;

import java.util.Scanner;

public class Demo02ScannerMax {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入第一个数字：");
        int a = sc.nextInt();
        System.out.print("请输入第二个数字：");
        int b = sc.nextInt();
        System.out.print("请输入第三个数字：");
        int C = sc.nextInt();
        int max;
        if(a > b){
            max = a;
        }else {
            max = b;
        }
        if(max < C){
            max = C;
        }
        System.out.println("最大值是："+max);
    }
}
